<script setup>
import {defineProps }from 'vue';
const {pageChange}=defineProps(['pageChange'])
</script>

<template>
  <div class="pagination">
    <div class="pre"  @click="pageChange('pre')">上一页</div>
    <div class="next" @click="pageChange('next')">下一页</div>
  </div>
</template>

<style scoped lang="less">
.pagination{
  display: flex;
  justify-content: center;
  margin-top: 20px;
  color: #fff;
  .pre{
    background-color: #409eff;
    margin-right: 10px;
    padding: 5px;
  }
  .next{
    background-color: #409eff;
    padding: 5px;
  }
}
</style>